<SCRIPT LANGUAGE="JavaScript">
<!--
/**
*	
*/
function f_gridDblFunc(keyID) {
	var curKeyID = trselObj.f_get_select_key();
	curKeyID = curKeyID[0];
	if (curKeyID == "") return ;
	//alert("curKeyID = " + curKeyID);

	//var cost_unit_id = "";
	//trselObj.f_getTDValueByKeyName(curKeyID ,"v_in_material_provider.cost_unit_id");
	var trObj = trselObj.f_getSelectTR();
	var arrWhere = curKeyID.split("-");
	//cost_unit_id = trObj.cells(4).innerText;

	var where_sql = "plan_req_material.dept_key_id = ? and plan_req_material.material_diff = ?";
	var where_type = "string;string";
	var where_value = arrWhere[1] + ";" + arrWhere[0];


	var contextPath = "<%=CONTEXTPATH%>";
	var funcid = "select_req_plan";

	var href = contextPath + g_layoutForm + funcid + "&pageType=subgrid";
	href += "&where_sql=" + where_sql;
	href += "&where_value=" + where_value;
	href += "&where_type=" + where_type;
	//alert("href = " + href);

	parent.frames("frmformdata").document.location = href
}
//-->
</SCRIPT>